<?php

namespace app\api\validate;

use think\Validate;

class  SupplierValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'discount' => 'require',
        'sort' => 'require'
    ];

    protected $msg = [
        'name.require' => '供应商名称不能为空',
        'discount.require' => '默认折扣不能为空',
        'sort.require' => '排序不能为空'
    ];
}